<template>
  <div>
    <Header></Header>
    <router-view></router-view>
    <!--Home,Search显示 ,登录和注册时隐藏-->
    <!-- v-if="$route.path==='/home'||$route.path==='/search'" -->
    <Footer v-if="$route.meta.show"></Footer>
  </div>
</template>

<script>
import Header from '@/components/Header'
import Footer from '@/components/Footer'
export default {
  components: {
    Header,
    Footer
  },
  created () {
    this.$store.dispatch('categoryList')
    this.$store.dispatch('reqGetBannerList')
  }
}
</script>

<style>
</style>
